package com.bkhech.utils;

import ch.qos.logback.classic.pattern.ClassicConverter;
import ch.qos.logback.classic.spi.ILoggingEvent;

import java.lang.management.ManagementFactory;

/**
 * PIdConverter
 *
 * @author guowm
 * @date 2024-11-19
 */
public class PIdConverter extends ClassicConverter {
    private static final String PID = ManagementFactory.getRuntimeMXBean().getName().split("@")[0];

    @Override
    public String convert(ILoggingEvent iLoggingEvent) {
        return PID;
    }
}

